class Log {
  constructor(status) {
    this.status = status
  }

  _err(msg) {
    this.status && console.error(`[ 错误 ] ${msg} !!!`)
  }

  _info(key, value) {
    this.status && console.log(`[ 打印 ] ${key} ::`, value)
  }

  _warn(msg) {
    this.status && console.warn(`[ 提示 ] ${msg}`)
  }
}

export const createLog = (s) => new Log(s)
